/**
 * 生产环境
 */
const TARGET = process.env.npm_lifecycle_event
let argv = TARGET == 'buildtest'? 'test':'';
var merge = require('webpack-merge')
var prodEnv = {
  APP_NAME:'"DEMO"',
  APP_TITLE:'"DEMO"',
  NODE_ENV: '"production"',
  API_BASE_PATH: '"http://prod.com"'
}

if (argv === 'test') { // 测试环境
  prodEnv = merge(prodEnv, {
    API_BASE_PATH: '"http://test.com"'
  })
}

module.exports = prodEnv